package cn.pugle.base.thread;

/**
 * @author tzp
 * @since 2018/2/8
 */
public class ThreadLocalTest {
    ThreadLocal<Object> tlLockTest;

    public static void main(String[] args) {
        ThreadLocalTest test = new ThreadLocalTest();
        test.tlLockTest = new ThreadLocal<>();
        test.tlLockTest.set(new LockTest());
        Thread.currentThread();//thread对象有threadLocals的一个map存着
        System.out.println(test.tlLockTest.get());
    }
}
